<?php

//加密
function bhmd5($str = '', $type = false, $time = 0, $key = '')
{
    if ($str == '') return false;
    $type = ($type) ? 'DECODE' : 'ENCODE';
    return model('tool')->bhmd5($str, $type, $key, $time);
}
